import { request } from "@umijs/max";
//分类列表
export const getTypePage = () =>
  request(`/materialClassification/all`, {
    method: "POST",
  });
//新增分类
export const addType = (params: any) =>
  request(`/materialClassification/add`, {
    method: "POST",
    data: params,
  });
// 删除分类
export const delType = (ids: any[]) =>
  request(`/materialClassification/del/${ids}`, {
    method: "DELETE",
  });
